<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

<ui:composition template="resources/template.xhtml">

	<ui:define name="subtitle">#{registerText.label_title}</ui:define>
	<ui:define name="body">
		<h:form class="registerform" id="registerform">
			<div class="container">
				<div>
					<span>
					<h:outputLabel value="#{registerText.label_login}" for="logininput" styleClass="bigform"/>
					<h:inputText value="#{registerBean.user.login}" id="logininput" label="Login" />
					</span>
					<h:message for="logininput" styleClass="error" />
				</div>
				<div>
					<span>
					<h:outputLabel value="#{registerText.label_password}" for="passwordinput" styleClass="bigform" />
					<h:inputSecret value="#{registerBean.user.password}" id="passwordinput" label="Password">
								<f:converter converterId="eu.quadran.passwordConverter" />
					</h:inputSecret>
					</span>
					<h:message for="passwordinput" styleClass="error"  />
				</div>
				<div>
					<span>
					<h:outputLabel value="#{registerText.label_confirmpassword}" for="password2input" styleClass="bigform" />
					<h:inputSecret value="#{registerBean.passwordconfirmation}" id="password2input" label="Password confirmation">
							<f:converter converterId="eu.quadran.passwordConverter" />
					</h:inputSecret>
					</span>
					<h:message for="password2input" styleClass="error" />
				</div>
				<div>
					<span>
					<h:outputLabel value="#{registerText.label_email}" for="emailinput" styleClass="bigform" />
					<h:inputText value="#{registerBean.user.email}" id="emailinput" label="E-mail"/>
					</span>
					<h:message for="emailinput" styleClass="error" />
				</div>
				<div>
					<span>
					<h:outputLabel value="#{registerText.label_company}" for="companyinput" styleClass="bigform" />
					<h:selectBooleanCheckbox value="#{registerBean.user.company}" id="companyinput" />
					</span>
					<h:message for="companyinput" styleClass="error" />
				</div>
				<div style="width:304px;clear:both;">
					<span>
					<h:commandLink action="#{registerBean.action}" styleClass="right">
						<h:outputText id="send" value="#{registerText.action_register}" />
					</h:commandLink>
					</span><br/>
					<h:message for="send" styleClass="error" />
				</div>
			</div>
		</h:form>
	</ui:define>
</ui:composition>


</html>
